package com.wondertek.poms.core.service.impl;

import com.wondertek.poms.common.service.impl.ServiceImpl;
import com.wondertek.poms.core.service.IDisplayFileService;
import com.wondertek.poms.dao.po.Content;
import com.wondertek.poms.dao.po.DisplayFile;
import com.wondertek.poms.dao.repo.IDisplayFileDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DisplayFileServiceImpl extends ServiceImpl<DisplayFile, Long> implements IDisplayFileService {

    @Autowired
    private IDisplayFileDao displayFileDao;

    @Override
    public DisplayFile deleteLogic(Long id) {
        return null;
    }

    @Override
    public DisplayFile merge(DisplayFile model) {
        return null;
    }

    @Override
    public void deleteByContentId(String contentId) {
        displayFileDao.deleteByContentId(contentId);
    }

    @Override
    public List<DisplayFile> findByContentId(String contentId) {
        return displayFileDao.findAllByContentId(contentId);
    }
}
